ARC029 A - 高橋君とお肉
提出
code: python
import itertools
n = int(input())
ans = float('inf')
for p in itertools.product(plate, repeat=n):
first = []
second = []
for i in range(n):
else:
res = max(sum(first), sum(second))
if (res < ans):
ans = res
print(ans)
テーマ